class Mothod:
    # 构造函数
    def __init__(self,year,month,day):
        self.year=year
        self.month=month
        self.day=day
    def tomorrow(self):
        self.day+=1
    @staticmethod
    def par_form_string(data):
        year,month,day=tuple(data.split("-"))
        return Mothod(int(year),int(month),int(day))
    def __str__(self):
        return "{year}.{month}.{day}".format(year=self.year,month=self.month,day=self.day)
if __name__ == '__main__':
    new_data=Mothod(2020,2,13)
    new_data.tomorrow()
    print(new_data)
    data="2020-02-13"
    year,month,day=tuple(data.split("-"))
    new_day=Mothod(int(year), int(month), int(day))
    print(new_day)
    new_data=Mothod.par_form_string(data)
    print(new_data)